import { IStar } from '@/interface';
import { $get, $post, $put, $delete } from '@/request/api';

export function fetchStarList(params) {
  return $get('/star/list', params);
}

export function fetchCreateStar(data: IStar) {
  return $post('/star/create', data);
}
export function fetchUpdateStar(data: IStar) {
  return $put(`/star/update/${data.id}`, data);
}
export function fetchDeleteStar(id: number) {
  return $delete(`/star/delete/${id}`);
}
